import request from '@/utils/request'
import { ILoginReturn, IRuleForm } from '../types'
import qs from 'qs'

export const userLogin = (data:IRuleForm):ILoginReturn => {
  return request<ILoginReturn>({
    method: 'POST',
    url: '/front/user/login',
    data: qs.stringify(data)
  })
}
